#ifndef EXTRACTIONMANAGERWINDOW_H
#define EXTRACTIONMANAGERWINDOW_H

#include <QtGui>
#include <QTimer>
#include <mlt++/Mlt.h>
#include "ui_ExtractionManagerWindow.h"
#include <iostream>
#include "DataManagerSingleton.h"

using namespace std;

class ExtractionManagerWindow : public QDialog, private Ui::ExtractionManagerWindow{
	Q_OBJECT

	public:
	ExtractionManagerWindow(QDialog *parent = 0);
	~ExtractionManagerWindow();
	int getVideoWidgetId();
	int getNExtractions();
	void addExtraction(int position);
	void setSlidersMaximum(int maximum);

	public slots:
	void reduceWindow();
	void play();
	void pause();
	void playOrPause();
	void changeExtraction(int rowIndex);
	void updateExtraction();
	void seek(int position);
	void updateSlider();
	void saveExtractions();

	private:
	void connectSlots();
	bool isPlaying;
	QTimer *timer;
};


#endif
